xen: tracing: introduce per-scheduler trace event IDs
authorDario Faggioli <dario.faggioli@citrix.com>
Tue, 18 Dec 2012 18:11:33 +0000 (18:11 +0000)
committerDario Faggioli <dario.faggioli@citrix.com>
Tue, 18 Dec 2012 18:11:33 +0000 (18:11 +0000)
commit21b5f316c7046186ec9ed36af33fc1a44b71b4bf
treec520f6f9539ce5e536a36c7b9d36dd097278110c
parentebce2d836c6f56e2a90c2794cc9da1a7eb1c43bb
xen: tracing: introduce per-scheduler trace event IDs

So that it becomes possible to create scheduler specific trace
records, within each scheduler, without worrying about the
overlapping, and also without giving up being able to recognise them
univocally. The latter is deemed as useful, since we can have more
than one scheduler running at the same time, thanks to cpupools.

The event ID is 12 bits, and this change uses the upper 3 of them for
the 'scheduler ID'. This means we're limited to 8 schedulers and to
512 scheduler specific tracing events. Both seem reasonable
limitations as of now.

This also converts the existing credit2 tracing (the only scheduler
generating tracing events up to now) to the new system.

Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Acked-by: George Dunlap <george.dunlap@eu.citrix.com>
Committed-by: Keir Fraser <keir@xen.org>
xen/common/sched_credit2.c
xen/include/public/trace.h